package com.wn.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.stereotype.Controller;

/**
 * @author yellow Docter
 * @date 2022 -07-11
 * @desc
 */
@Configuration
//@ComponentScan({"com.wn.mapper","com.wn.service"})   // 方式 1 : 扫描指定的范围

/**
 *  扫描 com.wn包下面所有 的组件 , excludeFilters 排除
 *                                   type = 排除的类型是注解
 *                                   classes = Controller.class 排除对应的class
 */
@ComponentScan(value="com.wn",
        // 排除的类型是 注解 ,这个注解是@Controller
        excludeFilters=@ComponentScan.Filter(
                type = FilterType.ANNOTATION,
                classes = Controller.class
        )
)
public class SpringConfig {


}
